package com.ews.onlineexchange.app.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinTable;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.OrderBy;
import javax.persistence.PostLoad;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.ews.onlineexchange.model.ProfessionUser;
import com.ews.onlineexchange.model.RejectRecord;
import com.ews.onlineexchange.util.SystemUUIDUtil;

/**
 * 实体名称：资质证书 说明：从属于某中介公司的，真是存在的资质
 * 
 * @author admin
 *
 */

public class TempQualificationCert implements Serializable{
	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1L;
	private String							id;
	private Boolean							auditResult;			// 审核结果
	private Date							auditTime;				// 审核时间
	private RejectRecord					currRejectRecord;		// 最近一次驳回原因
	private List<RejectRecord> 				historyRejectRecords = new ArrayList<>(); // 驳回历史
	private List<TempQualificationTemplate>	qualificationTemplates = new ArrayList<TempQualificationTemplate>();
	private TempServiceSupplier				serviceSupplier;
	private String							serviceSupplierName;
	private boolean							valid;					// 是否有效
	private Date							approveDate;
	private String							approveLicenseNo;
	private String							contactor;
	private String 							contactorPhoneNumber;
	private String 							approveDepartmentName;
	private Date							allotedDate;
	private List<TempImage>					certPhotos = new ArrayList<>();
	private TempQualificationClass			qualificationClass;
	private boolean							hidden;
	private String   						auditUserName = "";
	private List<TempAttachment>			attachments;
	
	
	public String getAuditUserName() {
		return auditUserName;
	}

	public void setAuditUserName(String auditUserName) {
		this.auditUserName = auditUserName;
	}

	public String getServiceSupplierName() {
		return serviceSupplierName;
	}

	public void setServiceSupplierName(String serviceSupplierName) {
		this.serviceSupplierName = serviceSupplierName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Boolean getAuditResult() {
		return auditResult;
	}

	public void setAuditResult(Boolean auditResult) {
		this.auditResult = auditResult;
	}


	public Date getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}


	public RejectRecord getCurrRejectRecord() {
		return currRejectRecord;
	}

	public void setCurrRejectRecord(RejectRecord currRejectRecord) {
		this.currRejectRecord = currRejectRecord;
	}
	
	
//
	public List<RejectRecord> getHistoryRejectRecords() {
		return historyRejectRecords;
	}

	public void setHistoryRejectRecords(List<RejectRecord> historyRejectRecords) {
		this.historyRejectRecords = historyRejectRecords;
	}

	public List<TempQualificationTemplate> getQualificationTemplates() {
		return qualificationTemplates;
	}

	public void setQualificationTemplates(List<TempQualificationTemplate> qualificationTemplates) {
		this.qualificationTemplates = qualificationTemplates;
	}


	public boolean isValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}


	public TempQualificationClass getQualificationClass() {
		return qualificationClass;
	}

	public void setQualificationClass(TempQualificationClass qualificationClass) {
		this.qualificationClass = qualificationClass;
	}


	public Date getApproveDate() {
		return approveDate;
	}

	public void setApproveDate(Date approveDate) {
		this.approveDate = approveDate;
	}


	public String getApproveLicenseNo() {
		return approveLicenseNo;
	}

	public void setApproveLicenseNo(String approveLicenseNo) {
		this.approveLicenseNo = approveLicenseNo;
	}


	public String getContactor() {
		return contactor;
	}

	public void setContactor(String contactor) {
		this.contactor = contactor;
	}


	public String getContactorPhoneNumber() {
		return contactorPhoneNumber;
	}

	public void setContactorPhoneNumber(String contactorPhoneNumber) {
		this.contactorPhoneNumber = contactorPhoneNumber;
	}


	public String getApproveDepartmentName() {
		return approveDepartmentName;
	}

	public void setApproveDepartmentName(String approveDepartmentName) {
		this.approveDepartmentName = approveDepartmentName;
	}


	public Date getAllotedDate() {
		return allotedDate;
	}

	public void setAllotedDate(Date allotedDate) {
		this.allotedDate = allotedDate;
	}


	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	public TempServiceSupplier getServiceSupplier() {
		return serviceSupplier;
	}

	public void setServiceSupplier(TempServiceSupplier serviceSupplier) {
		this.serviceSupplier = serviceSupplier;
	}

	public List<TempImage> getCertPhotos() {
		return certPhotos;
	}

	public void setCertPhotos(List<TempImage> certPhotos) {
		this.certPhotos = certPhotos;
	}

	public List<TempAttachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<TempAttachment> attachments) {
		this.attachments = attachments;
	}
	
	
	
}
